<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script  type="text/javascript" src="https://cdn.bootcdn.net/ajax/libs/jquery/1.10.0/jquery.js"></script>
    <script>
        $(function () {
            var $btnObj = $("#btnId");
            $btnObj.click(function () {
               alert("jQuery单击事件");
            });
        });
    </script>
</head>
<body>
        <button id="btnId">SayHello</button>
</body>
</html>